<?php
$title = '';
$link = '';

if($isUpdate==TRUE){
    $title = 'Update Artikel';
    $link = site_url('admin/artikel/update_artikel/'.$artikel_id);
    $submit = 'Update';
} else {
    $title = 'Tambah Artikel';
    $link =  site_url('admin/artikel/tambah_artikel');
    $submit = 'Tambah';
}

?>

<form id="registerform" class="rounded" method="post" action="<?php echo $link; ?>">
        <legend><h3><?php echo $title ?></h3></legend>
        <div class="field">
            <label for="name">Judul:</label>
            <input type="text" class="input" name="judul" id="fullname" for="judul" value="<?php echo $judul ?>"/>
        </div>
        <div class="field">
            <label for="name">Isi artikel:</label>
            <input type="textarea" cols="55" rows="10" size="50" class="input" name="isi" id="username" for="isi" value="<?php echo $isi ?>"/>
        </div>
        <input type="submit" name="Submit"  class="button" value="<?php echo $submit; ?>" />
        <div class="fieldcek">
            <?php
            echo validation_errors();
            ?>
        </div>
    </form>